<template>
  <div>
    <div>小数精度</div>
    <div>未处理 : {{ result_origin }}</div>
    <div>bigjs处理 : {{ result_bigjs }}</div>
    <div>
      {{ 1 / 3 }}
      {{ Big(1).div(Big(3)).round(3) }}
    </div>
  </div>
</template>

<script setup>
import Big from "big.js";

const result_origin = 0.3 / 0.1;
const result_bigjs = Big(0.3).div(Big(0.1));
</script>
